import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.util.Scanner;
import java.util.zip.GZIPInputStream;

import java.io.*;
import java.util.zip.*;

public class Stream {
	  public static int sChunk = 8192;

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub

	    String source = "c:\\gvb\\test.txt";

		Writer a = new FileWriter("c:\\gvb\\test.txt");
		a.append("Test 3");
		a.close();
		
		InputStream b1 =new FileInputStream("c:\\gvb\\test.txt");;
		OutputStream b2 =new FileOutputStream("c:\\gvb\\test.txt.gz");;
	
		GZIPOutputStream c = new GZIPOutputStream(b2);
		
		//GZIPInputStream c = new GZIPInputStream(b);
		//b.close();
		
		
	}

}
